home *** CD-ROM | disk | FTP | other *** search
/ ASP Advantage 1993 / The Association of Shareware Professionals Advantage CD-ROM 1993.iso / files / homeobby / fscr21 / makezips.bat < prev    next >
DOS Batch File  |  1993-06-28  |  3KB  |  56 lines

  1. @Echo off
  2. Cls
  3. Echo  ┌──────────────────────────────────────────────────────────────────────┐
  4. Echo  │                FROM SCRATCH ZIP FILE UTILITY                         │
  5. Echo  │                FOR USE BY VENDORS AND SYSOPS                         │
  6. Echo  ├──────────────────────────────────────────────────────────────────────┤
  7. Echo  │ This batch file will create two ZIP files:                           │
  8. Echo  │ FSCR21.ZIP     - From Scratch version 2.1 (no conversion pgm)        │
  9. Echo  │ FSCNVT21.ZIP   - From Scratch conversion pgm (requires above)        │
  10. Echo  │                                                                      │
  11. Echo  │ This will allow users to download and/or order diskettes for only    │
  12. Echo  │ the files they require.                                              │
  13. Echo  │ Either zip file will fit on a single 360K diskette.                  │
  14. Echo  │                                                                      │
  15. Echo  │ The following assumptions are made:                                  │
  16. Echo  │ * PKZIP.EXE is available in your search path.                        │
  17. Echo  │ * All the files from the FROM SCRATCH distribution diskette are in   │
  18. Echo  │   the current directory.                                             │
  19. Echo  │ * You have supplied the destination directory for the .ZIP files,    │
  20. Echo  │   i.e. MAKEZIPS C:\ZIPS or MAKEZIPS C:                               │
  21. Echo  ├──────────────────────────────────────────────────────────────────────┤
  22. Echo  │                    Press CTRL-C to abort, or                         │
  23. Echo  └──────────────────────────────────────────────────────────────────────┘
  24. Pause
  25. IF A%1A==AA GOTO NOPARAM
  26. IF not exist Scratch.ex_ GOTO NotDefDir
  27. IF exist %1\fscr21.zip DEL %1\FScr21.zip
  28. IF exist %1\fscnvt21.zip DEL %1\fscnvt21.zip
  29. Copy Setup.ini Complete.ini > nul
  30. Copy zip1.ini Setup.ini > nul
  31. Pkzip %1\Fscr21.zip @Fscr21.lst -z < Fscr21.zcm
  32. Copy Read.me Complete.rme > nul
  33. Copy Fscnvt21.rme read.me > nul
  34. Copy File_id.diz Complete.diz > nul
  35. Copy Fscnvt21.diz file_id.diz > nul
  36. Copy zip2.ini Setup.ini > nul
  37. Pkzip %1\FScnvt21.zip @Fscnvt21.lst -z < Fscnvt21.zcm
  38. Copy Complete.rme read.me > nul
  39. Copy Complete.diz File_id.diz > nul
  40. Copy Complete.ini setup.ini > nul
  41. del complete.*
  42. Dir %1\*.zip
  43. Echo Done!
  44. GOTO End
  45. :NoParam
  46. Echo You must supply a destination directory!
  47. Echo i.e. MakeZips \Zips
  48. Echo            or
  49. Echo MakeZips c:
  50. Echo Do not include ending backslash in destination pathname...
  51. GOTO End
  52. :NotDefDir
  53. Echo The From Scratch files are not in the current path!
  54. GOTO End
  55. :End
  56.